﻿using System;
using System.Collections.Generic;
using System.Text;

namespace UOL.PagSeguro.TestServer {

    public delegate void OnServerResponseEventHandler(string request);
    public delegate void OnVendaReceivedEventHandler(VendaPagSeguro venda);

    public interface IPagSeguroServer : IDisposable {

        event OnServerResponseEventHandler OnServerResponse;
        event OnVendaReceivedEventHandler OnVendaReceived;

        void Start();
        void Stop();
        bool IsOnline();
        void ProcessarRetornoAutomatico(string formData);
    }
}
